﻿<%@ Language="C#" Inherits="System.Web.Mvc.ViewUserControl<FacialClub.Models.ViewModels.NotificationViewModel>" %>
<%@ Import Namespace="FacialClub.Helpers" %>
  <%: Html.ValidationSummaryJQuery("Please fix these errors.", new Dictionary<string, object> { { "id", "valSumId" } })%>
  <% Html.EnableClientValidation(); %>
  <% using (Html.BeginForm()) {%>
  <% ViewContext.FormContext.ValidationSummaryId = "valSumId"; %>
        <fieldset>
        <table width="100%" border="0" cellspacing="0" cellpadding="5">
            <tr>
                <td style="width:80px;" >
                    <strong>Title</strong></td>
                <td style="width:10px;">
                    &nbsp;</td>
                <td>
                    <%: Html.TextBoxFor(model => model.Notification.Title)%>
                    <%: Html.ValidationMessage("Title","*")%>
                </td>
            </tr>
            <tr>
                <td>
                  <strong>Subject</strong></td>
                <td>
                    &nbsp;</td>
                <td>
                    <%: Html.TextBoxFor(model => model.Notification.Subject)%>
                    <%: Html.ValidationMessage("Subject","*")%>
                </td>
            </tr>
            <tr>
                <td>
                  <strong>Description</strong></td>
                <td >
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">
                    <%: Html.EditorFor(model => model.Notification.Description)%>
                    <%: Html.ValidationMessage("Description","*")%>
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Is Active</strong></td>
                <td>
                    &nbsp;</td>
                <td>
                     <%= Html.RadioButton("IsActive", true, true)%> Yes <%= Html.RadioButton("IsActive", false, false)%> No <br />
            <%: Html.ValidationMessage("IsActive", "*")%></td>
            </tr>
            <tr>
                <td>
                    <input type="submit" value="Submit" /></td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
    </table>
        </fieldset>
<% } %>
